import request from '@/utils/request'
export const reqSelectByPage = (pageParams, shopOrder) => request({
  url: '/shopOrder/selectOrderByPage',
  method: 'post',
  data: {
    page: pageParams.page,
    pageSize: pageParams.pageSize,
    shopName: shopOrder.shopName,
    orderName: shopOrder.orderName,
    status: shopOrder.status,
    orderNo: shopOrder.orderNo,
    dianjia: shopOrder.dianjia
  }
})

// 创建订单
export const reqInsertOrUpdate = (shopOrder) => request({
  url: '/shopOrder/createOrder',
  method: 'post',
  data: {
    username: shopOrder.username,
    num: shopOrder.num,
    name: shopOrder.name,
    id: shopOrder.id
  }
})
// 下架
export const reqshelfById = (good) => request({
  url: '/Goods/shelfById',
  method: 'post',
  data: good
})
// 物理删除
export const reqdeleteById = (shopOrder) => request({
  url: '/shopOrder/deletedById',
  method: 'post',
  data: shopOrder
})

